package com.stox.model;

import java.io.Serializable;

import javax.persistence.Cacheable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Entity
@Cacheable
@NoArgsConstructor
@AllArgsConstructor
@Table(indexes={	@Index(name="SCRIP_EXCHANGE_ID_INDEX", columnList="EXCHANGE_ID")})
public class Scrip implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Long id;
	
	private String name;
	
	private String scripGroup;
	
	private String type;
	
	private Boolean active;
	
	@Column(name="EXCHANGE_ID")
	private Long exchangeId;
	
}
